package com.hzvtc.myproject.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class BackLate {
    private Long id; // 迟归补报ID

    @NotNull
    private Long studentId; // 学生ID

    private Student student; // 学生对象

    private String reason; // 迟归原因

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime backDate; // 补报日期
}
